const Convert = {
  toBoolean: (value: string | boolean | undefined) => {
    if (value === undefined) {
      return false;
    }
    return (
      value === 'true' ||
      value === '1' ||
      value === true ||
      value === 'yes' ||
      value === 'Y' ||
      value === 'TRUE'
    );
  },
};

export default Convert;
